﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IOTestMain.Classes
{
    public class TimeSpanTest
    {
        public void TimeSpanToMinutes()
        {
            TimeSpan t = new TimeSpan(00,10,35);
            TimeSpan t1 = new TimeSpan(0, 10, 36);
            Console.WriteLine("TimeSpan Second " + t.Seconds);
            Console.WriteLine("TimeSpan Totle Second "+ t.TotalSeconds);
            Console.WriteLine(t < t1);
        }

        public void DateTimeTest()
        {
            DateTime dt = DateTime.Now;
            Console.WriteLine(dt.Day);
            Console.WriteLine(dt.TimeOfDay);
        }
    }
}
